4} + 2n
> \stopformula
> \stoptext
>
> I looked at \chemical and \molecule, but could not find a way to make
> isotopes with those. Any ideas?
>
> Gavin
>
>
___
If your question is of in
} + {\rm
Xe}^^{140}__{54} + 2n
\stopformula
\stoptext
I looked at \chemical and \molecule, but could not find a way to make isotopes
with those. Any ideas?
Gavin
PastedGraphic-1.pdf
Description: Adobe PDF document
From a thread on this list (May 2009:
http://archive.contextgarden.net/message/20090512.132914.5c29b5f4.en.html)
I gather that whereas colouring a whole molecule works fine, colouring
groups within a chemical structure is not yet fully implemented in mkiv.
Is that still correct?
Putting
On Friday 19 November 2010 09:52:47 Jörg Hagmann wrote:
From a thread on this list (May 2009:
http://archive.contextgarden.net/message/20090512.132914.5c29b5f4.en.html)
I gather that whereas colouring a whole molecule works fine, colouring
groups within a chemical structure is not yet fully
... the following version supports
nested braces and numbers (we can let this evolve in a proper chemical
subsystem if needed since eventually i will replace ppchtex anyway)
\startluacode
local molecule = { }
local format, sprint = string.format, tex.sprint
function commands.justtext(one)
sprint
molecule_lpeg.tex
Description: Binary data
Am 23.02.2009 um 18:14 schrieb Mojca Miklavec:
thanks a lot for the very nice code :) :) :)
The second example (H_2^+) does not return expected result - it
should have been
H\lohi{2}{+}
instead, but I don't require such cases for the current
[small]#1}}\fi }
\def\finishchem%
{\ifvoid\chemlowbox \else
\iffluor \fluorfalse \kern-.1em \fi\low{\box\chemlowbox}\fi}
% for kerning after F
\newif\iffluor
\unexpanded\def\molecule%
{\bgroup
\catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}%
\catcode`\^=\active \uccode
)
end
\stopluacode
\def\molecule#1{\ctxlua{thirddata.molecule('#1')}}
\starttext
\molecule{H_2SO_4}
\molecule{H_2^+}
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry
(text)
text = string.gsub(text,_,\\low)
text = string.gsub(text,%^,\\high)
tex.sprint(text)
end
\stopluacode
\def\molecule#1{\ctxlua{thirddata.molecule('#1')}}
hmm
Isn't better to remember original \molecule ?
I mean, something like
\let\ORIGINALmolecule\molecule
\def\molecule#1
Hello,
I am having trouble drawing rotated molecules using ppchtex.
In the example below, I would like to draw the molecule shown in (a)
rotated as shown in (b).
I would appreciate any suggestions. Thanks.
Alan
\usemodule[chemic]
\setupchemical[width=fit]
\starttext
\startcombination[2*1
Taco's macro
for that purpose (works better in titles). See \molecule on
http://wiki.contextgarden.net/Chemistry.
Hello Mojca,
did you try it? Here, I get this error:
! LuaTeX error ...TeX-live/texmf-context/tex/context/base/syst-con.lua:21:
bad argument #1 to 'char' (invalid value
}
\stoptext
The issue probably needs to be solved, but I happily use Taco's macro
for that purpose (works better in titles). See \molecule on
http://wiki.contextgarden.net/Chemistry.
Hello Mojca,
did you try it? Here, I get this error:
I didn't claim that it works in mkiv, I still
in titles). See \molecule on
http://wiki.contextgarden.net/Chemistry.
Mojca
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman
}\fi}
% for kerning after F
\newif\iffluor
\unexpanded\def\molecule%
{\bgroup
\catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}%
\catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\chemhigh}%
\dostepwiserecurse {65}{90}{1}
{\catcode \recurselevel = \active
\uccode
Thanks for the suggestion, Taco's \molecule macro works.
There is a similar problem for Units (with \usemodule[units]) that appears
in headings, table of contents and list of figure captions, etc.
Sample code:
\usemodule[units]
\starttext
\placecontent
\section{1 \Square\Centi\Meter}
Hello world
in the title. (The title itself is *not* italic, I'm also
not asking that the font/style should follow the surrounding text,
though a \setupchemical option which toggles this would be great.)
(Using \molecule as defined in the wiki is an alternative; your problem
was different as you wanted
notice the missing component. That is bug #394613 in pgf.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ.
Zürich
Debian Developer (teTeX/TeXLive)
--
Johan Sandblom N8, MRC, Karolinska sjh
t +46851776108 17176 Stockholm
m
explains in 5 lines why one would
want to use ConTeXt instead of LaTeX.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
___
ntg-context mailing list
ntg
broken software.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg
tell us our experiences/failures/suggestions.
Frank,
is this truely a valid line for sources.list?
Yes, I've got plenty of those.
My apt shows errors with this line.
which errors?
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ
with the
Debian ConTeXt package.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman
people who set env vars wrongly, or completely forgot they ever
had...
I'll see that I or Norbert Preining look into this and come back with a
more constructive proposal.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian
like we dropped the program-specific paths (and with that
their order), and like it wouldn't have been necessary to add a hack
(but I know that at the time of the teTex-3.0-beta-release when I
introduced it it *was* necessary).
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein
live
alongside a tetex was always kind of problematic due to path settings
and this autoparent mess then deriving locations of texmf.cnf from it
This is probably still a problem in standard-setup systems.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst
://www.tug.org/texlive/Debian/ context/
to your /etc/apt/sources.list file and install context. After this,
please tell us our experiences/failures/suggestions.
Thanks a lot and all the best
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
to be called
- when ConTeXt is updated
- when any of the engines is updated?
I don't use ConTeXt myself, and I always have problems finding the
relevant places in the documentation, sorry...
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ
?
TIA, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
Mojca Miklavec wrote:
It works perfect except in a single case: \title{\molecule{SF_6}}
I had seen that, but not yet bothered to fix it. Still, it is
fairly easy to change the macro, try the version below.
Sorry, I thought you were talking about the spacing between F and 6.
Didn't work
On 7/2/06, Taco Hoekwater wrote:
Mojca Miklavec wrote:
It works perfect except in a single case: \title{\molecule{SF_6}}
I had seen that, but not yet bothered to fix it. Still, it is
fairly easy to change the macro, try the version below.
Sorry, I thought you were talking about
mptopdf.1.gz
Description: manpage
--
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg
to
Does that really look better? You can have bold endashes, but
you will not get a bold minus.
remove [left] because that one is only good for isotopes such as
ah. i misunderstood that.
It works perfect except in a single case: \title{\molecule{SF_6}}
I had seen that, but not yet bothered
matter that much.
It works perfect except in a single case: \title{\molecule{SF_6}}
I had seen that, but not yet bothered to fix it. Still, it is
fairly easy to change the macro, try the version below.
Didn't work in titles either (or I did something strange) :(
But If I write a couple
{{\switchtobodyfont[small]#1}}%
\else \lohi[left]{\box\chemlowbox}{{\switchtobodyfont[small]#1}}\fi }
\def\finishchem{\ifvoid\chemlowbox \else \low{\box\chemlowbox}\fi}
\unexpanded\def\molecule%
{\bgroup
\catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}%
\catcode`\^=\active
it), not a mathematical thing. I have
a lot of simple formulas such as \molecule{SF_6} and they look
a-kind-of-ugly with a tiny script.
So you noticed I was trying to weasly out of something, did you? ;-)
Taco
% The next macro only works as long as you code the subscripts
% before
}
\def\finishchem{\ifvoid\chemlowbox \else \low{\box\chemlowbox}\fi}
\unexpanded\def\molecule%
{\bgroup
\catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}%
\catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\chemhigh}%
\dostepwiserecurse {65}{90}{1}
{\catcode
}{{\switchtobodyfont[small]#1}}\fi }
\def\finishchem{\ifvoid\chemlowbox \else \low{\box\chemlowbox}\fi}
\unexpanded\def\molecule%
{\bgroup
\catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}%
\catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\chemhigh}%
\dostepwiserecurse {65
Hello,
I have to tiny questions:
1. How do I get small caps [bold] italic (except with the
\definedfont[ec-lmxxx])?
2. I defined \molecule to be
\def\molecule#1{$\rm#1$},
an usage example would be:
\molecule{HSO_4^{-}}
But how should I modify this it so that it would also work properly
On Wed, 28 Jun 2006, Mojca Miklavec wrote:
Hello,
I have to tiny questions:
1. How do I get small caps [bold] italic (except with the
\definedfont[ec-lmxxx])?
No idea.
2. I defined \molecule to be
\def\molecule#1{$\rm#1$},
better use {\mathematics{\rm #1}} so that you can also write
typescripts, but I do not know how that is
supposed to be done in actual code.
Some catcode trickery might work. This is all I could manage.
This does not work well, because
HSO\low{4}\high{-}
is not correct.
% \def\molecule#1{\mathematics{ {\rm #1}}}
\bgroup
\catcode`\_=\active
in some cases, see below. I converted the document
from LaTeX and I didn't came to the idea of using low and high
(perhaps just because that's not possible there).
% \def\molecule#1{\mathematics{ {\rm #1}}}
Thank you for the note. I would never use it inside formulas, but I
would never though about
41 matches
Mail list logo